﻿@{
    Layout = "~/Views/Shared/_Index.cshtml";
}
@inject Microsoft.AspNetCore.Hosting.IWebHostEnvironment HostingEnvironment
@section header{
    @BundlerHelper.Render(HostingEnvironment.ContentRootPath, Url.Content("~/shris/js/vue.js"))
    @BundlerHelper.Render(HostingEnvironment.ContentRootPath, Url.Content("~/shris/css/element-index.css"))
    @BundlerHelper.Render(HostingEnvironment.ContentRootPath, Url.Content("~/shris/js/element-index.js"))
    @BundlerHelper.Render(HostingEnvironment.ContentRootPath, Url.Content("~/shris/js/axios.js"))
}
<div class="container-div" id="deviceManage_HoleDepthMeasure-vue">
    <h1>孔深测量</h1>
</div>

<script>
    let app = new Vue({
        el: "#deviceManage_HoleDepthMeasure-vue",
        methods: {
            // 获取设备当天的历史状态信息
            GetTodayData() {
                let url = '@Url.Content("~/DeviceManage/DeviceDetail/GetDeviceInfo")'
                axios.get(url, {
                    params: {
                        deviceCode: "数控车床_01"
                    }                   
                }).then(res => {
                    console.log(res)
                }).catch(err => {
                    console.log(err)
                })
            }
        },
        mounted() {
            this.GetTodayData();
        }
    })
</script>

